package com.lb.shopguide.util.lb;

import com.lb.shopguide.ImCache;
import com.netease.nim.uikit.api.NimUIKit;
import com.netease.nim.uikit.api.model.main.LoginSyncDataStatusObserver;
import com.netease.nim.uikit.common.ui.drop.DropManager;
import com.netease.nimlib.sdk.NIMClient;
import com.netease.nimlib.sdk.auth.AuthService;

/**
 * 注销帮助类
 * Created by huangjun on 2015/10/8.
 */
public class LogoutHelper {
    public static void logout() {
        // 清理缓存&注销监听&清除状态
        NimUIKit.logout();
        ImCache.clear();
        NIMClient.getService(AuthService.class).logout();
//        LoginSyncDataStatusObserver.getInstance().reset();
//        DropManager.getInstance().destroy();
    }
}
